package ds.impl;

import org.springframework.transaction.annotation.Transactional;

import us.IClientUS;
import ds.IClientDS;
import entities.User;

@Transactional
public class ClientDS implements IClientDS {

	private IClientUS clientUs;

	public void createUser(User user) {
		clientUs.createUser(user);
	}

	public boolean isAvailable(String pseudo) {
		return clientUs.isAvailable(pseudo);
	}

	public IClientUS getClientUs() {
		return clientUs;
	}

	public void setClientUs(IClientUS clientUs) {
		this.clientUs = clientUs;
	}

	@Override
	public boolean checkLoginPass(String login, String pass) {
		return clientUs.checkLoginPass(login, pass);
	}

	@Override
	public User find(String login) {
		return clientUs.find(login);
	}

}